package com.intelligent.ispc.core.repository.jpa;

import com.intelligent.ispc.core.entity.Group;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by dmsoft on 2016/5/3.
 */
public interface GroupDao extends PagingAndSortingRepository<Group, Long>, JpaSpecificationExecutor<Group> {
    Group findByName(String name);
    Group findByDescription(String description);
    Group findById(Long id);
}
